
<?
	// http://metal07.cafe24.com/andro/andro_sql_query.php

	$DBINFO['host']='localhost';
	$DBINFO['user']='metal07';
	$DBINFO['pass']='qweasd!@3';
	$DBINFO['name']='metal07';
	
	$_connect=@mysql_connect($DBINFO['host'], $DBINFO['user'], $DBINFO['pass']);
	if($_connect){
		if(@mysql_select_db($DBINFO['name'], $_connect)){
			$sql=$_REQUEST['sql'];
			$sql=str_replace("\\","",$sql);
			print($sql);
			$rs=mysql_query($sql, $_connect);
			if($rs){
				print($rs);
			}else{
				print("no result");
			}
			
			mysql_close();
			
		}else{
			print("db selection error");
		}
	}else{
		print("db connection error");
	}
	
?>


